@import '~@/assets/style/unit/color.scss';

// 工具类名统一前缀
$prefix: d2;

// 禁止用户选中 鼠标变为手形
%unable-select {
  user-select: none;
  cursor: pointer;
}

// 填满父元素
// 组要父元素 position: relative | absolute;
%full {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

// flex 垂直水平居中
%flex-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

%flex-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

// 将元素模拟成卡片外观
%card {
  border: 1px solid #dddee1;
  border-color: #e9eaec;
  background: #fff;
  border-radius: 4px;
  font-size: 20px;
  position: relative;
}

.el-form-item__label{
  font-size: 20px;
}

.main .el-form-item__label{
  color: #4EFFFB;
}

.main .el-input__inner{
  background: #2D3B47;
  color: #4EFFFB;
}

.main .el-input.is-disabled .el-input__inner {
  background-color: #3f5466;
  border-color: #E4E7ED;
  color: #4EFFFB;
  cursor: not-allowed;
}

.main .el-textarea__inner{
  font-size: 18px;
  background-color: #3f5466;
  border-color: #E4E7ED;
  color: #4EFFFB;
}

.el-table .cell{
  font-size: 20px;
}

.el-input, .el-textarea__inner {
  font-size: 18px;
}

.el-tree{
  font-size: 22px;
}

.el-select-dropdown__item{
  font-size: 20px;
}

.d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-header .el-menu .el-menu-item{
  font-size: 20px;
}

.theme-d2 .d2-theme-header .d2-header-right .btn-text{
  font-size: 20px;
}

.v-contextmenu .v-contextmenu-item{
  font-size: 16px;
}

.el-icon-top:before, .el-icon-bottom:before {
  color: crimson;
  border: 1px solid;
  border-radius: 50%;
  font-weight: bold;
}